package cn.tx;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author Administrator
 * @title: ${NAME}
 * @projectName tx-servlet1
 * @description: TODO
 * @date 2019/4/1021:12
 */
@WebServlet(name = "MyHttpServlet2",urlPatterns = "/http2")
public class MyHttpServlet2 extends HttpServlet {
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("HTTP2 doPost方法被调用了!!!!!!!!");
    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("HTTP2 doGet方法被调用了 ----- ");
    }
}
